<template>
  <div>
    <!-- 单人伙拼 -->
    单人伙拼
    <div class="pairedTogether_product" v-for="item of together" :key="item.index">
      <div class="pairedTogether_img">
        <img :src="item.img" alt>
      </div>
      <div class="pairedTogether_name">
        <p>{{item.title}}</p>
        <div class="pairedTogether_team">
          <span>{{item.team}}</span>
          <span>{{item.teamNumber}}</span>
        </div>
        <div class="pairedTogether_price">
            <p>￥{{item.newPrice}}</p>
            <span>￥{{item.historyPrice}}</span>
        </div>
      </div>
      <div class="pairedTogether_pin">去拼团</div>
    </div>
  </div>
</template>
<script>
export default {
  props: ["together"],
  created() {
    console.log(this.together);
  }
};
</script>
<style>
/* 去拼团样式 */
div.pairedTogether_product {
  display: flex;
  justify-content: space-around;
  position: relative;
  background: #FFFFFF;
  margin-bottom: 8px;
  margin-top: 8px;
  padding-bottom: 8px;
  padding-top:8px;
}
div.pairedTogether_img{
  width: 30%;
}
div.pairedTogether_price {
  display: flex;
  justify-content: space-around;
  position:absolute;
  bottom: 15px;
}
div.pairedTogether_pin {
  border: 1px solid #ea6576;
  background: #ea6576;
  border-radius: 10px;
  color: #fbf5f6;
  font-size: 14px;
  padding: 3px 8px;
  height: 20px;
  margin-top:100px;
}
div.pairedTogether_price span {
  text-decoration: line-through;
  color: #c4c4c4;
  font-size: 10px;
}
div.pairedTogether_price p{
  font-size: 14px;
  color: #DA0000;
  margin-right: 10px;
}
div.pairedTogether_product img{
  border-radius:10px;
  width: 100%;
  height: 131px;
}
div.pairedTogether_name{
  width: 45%;
}
div.pairedTogether_pin{
  font-size: 10px;
}
div.pairedTogether_team{
  font-size: 14px;
}
div.pairedTogether_team span:first-child{
  color: #F7C26F;
  margin-right: 10px;
}
div.pairedTogether_team span:last-child{
  color: #c4c4c4;
}
</style>
